package com.lagou.web;

import com.lagou.service.bean.EchoServiceBean;
import com.lagou.service.bean.HelloServiceBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DubboController {

    @Autowired
    private HelloServiceBean helloServiceBean;
    @Autowired
    private EchoServiceBean echoServiceBean;

    @GetMapping("/dubbo")
    public void dubbo() {
        System.out.println(helloServiceBean.sayHello("111"));
        System.out.println(echoServiceBean.echo("222"));
    }

}